package com.oristand.printer.address.model;

import javafx.beans.property.StringProperty;

/**
 * @author chenkailiang
 * @date 2020/9/2
 */
public class LabelDetail {


    /**
     * line number
     */
    private final StringProperty index;
    /**
     * 订单号
     */
    private final StringProperty orderId;
    /**
     * item code
     */
    private final StringProperty itemCode;
    /**
     * tracking number
     */
    private final StringProperty trackingNumber;
    /**
     * 附属label数量(s2s,65 warning)
     */
    private Integer attachmentNumber;
    /**
     * 打印日期
     */
    private String printDate;

    /**
     * label在文件中的页数
     */
    private Integer lineNumber;



    public LabelDetail(StringProperty index,StringProperty orderId, StringProperty itemCode, StringProperty trackingNumber) {
        this.index = index;
        this.orderId = orderId;
        this.itemCode = itemCode;
        this.trackingNumber = trackingNumber;
    }

    public Integer getLineNumber() {
        return lineNumber;
    }

    public void setLineNumber(Integer lineNumber) {
        this.lineNumber = lineNumber;
    }

    public Integer getAttachmentNumber() {
        return attachmentNumber;
    }

    public void setAttachmentNumber(Integer attachmentNumber) {
        this.attachmentNumber = attachmentNumber;
    }

    public LabelDetail(){
        this(null,null,null,null);
    }

    public String getIndex() {
        return index.get();
    }

    public StringProperty indexProperty() {
        return index;
    }

    public void setIndex(String index) {
        this.index.set(index);
    }

    public String getOrderId() {
        return orderId.get();
    }

    public StringProperty orderIdProperty() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId.set(orderId);
    }

    public String getItemCode() {
        return itemCode.get();
    }

    public StringProperty itemCodeProperty() {
        return itemCode;
    }

    public void setItemCode(String itemCode) {
        this.itemCode.set(itemCode);
    }

    public String getTrackingNumber() {
        return trackingNumber.get();
    }

    public StringProperty trackingNumberProperty() {
        return trackingNumber;
    }

    public void setTrackingNumber(String trackingNumber) {
        this.trackingNumber.set(trackingNumber);
    }

    public String getPrintDate() {
        return printDate;
    }

    public void setPrintDate(String printDate) {
        this.printDate = printDate;
    }

}
